#include "stdafx.h"
#include "CardDiceForceSix.h"
#include"TheRichMan.h"

CardDiceForceSix::CardDiceForceSix() :Card(world)
{
}


CardDiceForceSix::~CardDiceForceSix()
{
}

EventResult CardDiceForceSix::OnUse(Map & map, Entity & user)
{
	int id = TheRichMan::instance.GetPlayerIdAt(user);
	if (id == -1)return et_fail;
	TheRichMan::instance.GetPlayerDateAt(id).NextDice(6);
	return et_success;
}
